#include <bits/stdc++.h>

using namespace std;
#define int long long
const int inf = 0x3f3f3f3f;

void solve()
{
    int n;
    cin >> n;
    map<int, int> mp;
    for (int i = 0; i < n; i++)
    {
        int x;
        cin >> x;
        mp[x]++;
    }
    if (mp.size() == 1)
    {
        auto it = mp.begin();
        if (it->first == n - 1 || it->first <= n / 2) cout << "Other" << endl;
        else cout << "Lie" << endl;
    }
    else if (mp.size() == 2)
    {
        auto it1 = mp.begin();
        auto it2 = mp.end();
        --it2;
        if (it1->first + 1 == it2->first && it1->second == it2->first) cout << "Other" << endl;
        else cout << "Lie" << endl;
    }
    else cout << "Lie" << endl;
}

signed main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int _ = 1;
    cin >> _;
    while (_--)
    {
        solve();
    }
    return 0;
}